package com.topboya.officeuser.exception;

/**
 * @className ThrowableTest
 * @Author xiaxin
 * @Date 2020/12/17 13:09
 * @Version 1.0
 **/
public class ThrowableTest {
    public static void main(String[] args) {
        ThrowAble.sneakyThrow(new Exception("jsdf"));

    }

//    public static void gameOver() throws Exception {
//        say();
//    }

    public static Throwable getException(Throwable t) throws Exception {
        return ThrowableTest.throwTast(t);
    }

    private static RuntimeException throwTast(Throwable t) throws Exception {
        throw (Exception) t;
    }


//    public static  void say() {
//        throw getException(new Exception("拉拉家里"));
//    }
}
